
import Heibaipei from "./Heibaipei";

const {ccclass, property} = cc._decorator;

@ccclass
export default class Basket extends cc.Component {
    start () {

    }


    onCollisionEnter(other, self) {
        if ((self.node.group == "blackBasket" && other.node.group == "black" )
            || (self.node.group == "whiteBasket" && other.node.group == "white") ) {
            Heibaipei.addScore();
        }else{
            Heibaipei.over();
        }
    }
}
